<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>邀好友微信订水</title>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate"/>
    <meta http-equiv="Pragma" content="no-cache"/>
    <meta http-equiv="Expires" content="0"/>
    <meta name="viewport"
          content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <link href="css/mui.min.css" rel="stylesheet"/>
    <link rel="stylesheet" href="./fonts/font_tabbar/iconfont.css"/>
    <link rel="stylesheet" href="./css/public.css?v=20181211"/>
    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
    <script src='./js/jquery-3.2.1.min.js'></script>
    <script src="./js/mui.min.js"></script>
    <script src="./js/art-template.js"></script>
    <script src="./js/config.js?v=20181211"></script>
</head>
<body>
    <header class="mui-bar mui-bar-nav header_change_color">
        <a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
        <h1 class="mui-title"></h1>
    </header>
     <div class="body">
         <img id="qrcode" src="image/person_refer_default.jpg">
     </div>
</body>
</html>
<script src='./js/commen.js?v=20181211'></script>
<script>
    var mid = GetQueryString('mid');

    var success = function (res) {
        if(res.status == 1){
            url =  res.data.qr;
            var shop_name = res.data.shop_name;
            $('#qrcode').attr('src',url);
            $('.mui-title').html(shop_name);
            document.title = shop_name;
            mui.toast('二维码有效期30天');
        }
    }
    var error = function () {
        $('#qrcode').html('请求出错');
    }
    getData(commission_qr,{mid:mid},success,error);


</script>
<style>
    .body{
        position: fixed;
        top: 44px;
        left: 0;
        right: 0;
        bottom: 0;
    }

    .body img{
        width: 100%;
        height: 100%;
    }
</style>
